import java.awt.*;
import java.util.Random;

public class Food {
	private int xPos, yPos;
	static Random r = new Random();
	
	public Food(){
		this.xPos=r.nextInt(30);
		this.yPos=r.nextInt(30);
				
	}
	
	public Point getPoint(){
		return new Point(xPos,yPos);
	}
	
	public void draw(Graphics g, Dimension d){
		g.setColor(Color.DARK_GRAY);
		g.fillOval(this.xPos*d.width, yPos*d.height, d.width, d.height);
		g.setColor(Color.LIGHT_GRAY);
		g.fillOval(this.xPos*d.width, yPos*d.height, d.width-2, d.height-2);
		
	}
	
}
